home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / vg-2.03 / video / kbd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-03  |  1.2 KB  |  58 lines

  1. /*
  2.  * Copyright (C) 1990-1992 Michael Davidson.
  3.  * All rights reserved.
  4.  *
  5.  * Permission to use, copy, modify, and distribute this software
  6.  * and its documentation for any purpose and without fee is hereby
  7.  * granted, provided that the above copyright notice appear in all
  8.  * copies and that both that copyright notice and this permission
  9.  * notice appear in supporting documentation.
  10.  *
  11.  * This software is provided "as is" without express or implied warranty.
  12.  */
  13.  
  14. #ifndef    KBD_H
  15. #define    KBD_H
  16.  
  17. /*
  18.  * defines for some standard ascii values
  19.  */
  20. #define    K_ESCAPE    0x1b
  21. #define    K_ENTER        0x0d
  22. #define    K_BACKSPACE    0x08
  23. #define    K_TAB        0x09
  24. #define    K_NEWLINE    0x0a
  25. #define    K_SPACE        0x20
  26.  
  27. /*
  28.  * defines for function keys and cursor keys
  29.  */
  30. #define    K_UP        0x101
  31. #define    K_DOWN        0x102
  32. #define    K_LEFT        0x103
  33. #define    K_RIGHT        0x104
  34. #define    K_HOME        0x105
  35. #define    K_END        0x106
  36. #define    K_PG_UP        0x107
  37. #define    K_PG_DN        0x108
  38. #define    K_INS        0x109
  39. #define    K_DEL        0x10a
  40. #define    K_MINUS        0x10b
  41. #define    K_PLUS        0x10c
  42. #define    K_5        0x10d
  43.  
  44. #define    FUNC(x)        ((x) | 0x200)
  45. #define    CTRL(x)        ((x) | 0x400)
  46. #define    SHIFT(x)    ((x) | 0x800)
  47. #define    ALT(x)        ((x) | 0x1000)
  48.  
  49. #define    K_WAIT        -1
  50. #define    K_NOWAIT    0
  51.  
  52. void    kbdInit();
  53. void    kbdReset();
  54. int    kbdGetKey(int);
  55. void    kbdBell();
  56.  
  57. #endif    /* KBD_H */
  58.